﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ApartmentGroupLine.ascx.cs"
    Inherits="blackhouse.Aparts.Web.Modules.ApartmentGroupLine" %>
<%@ Register Src="~/Modules/CurrencyLiteral.ascx" TagName="CurrencyLiteral" TagPrefix="blackhouse" %>
<%@ Register Assembly="blackhouse.Aparts.Web" Namespace="blackhouse.Aparts.Web.Modules"
    TagPrefix="blackhouse" %>
<div class="apartment-line">
    <asp:Panel runat="server" ID="pnlDiscount" Visible="false" CssClass="apartment-discount">
        <div class="value"><asp:Literal runat="server" ID="ltlDiscountValue" /></div>
        <div class="name"><asp:Literal runat="server" ID="ltlDiscountName" /></div>
    </asp:Panel>
    <asp:Image runat="server" ID="imgMainPhoto" CssClass="apl-im" />
    <div class="apl-r">
        <div class="apl-opi">
            <asp:Literal runat="server" ID="ltlOpinionText" />
            <span class="apl-opi-s">
                <asp:Literal runat="server" ID="ltlOpinion" /></span>
        </div>
        <div class="apl-opi-b">
            <%=GetGlobalResourceObject("Aparts", "opinionScoreFrom")%>
            <asp:HyperLink runat="server" ID="lnkToOpinions" ToolTip="<%$ Resources:Aparts, opinionsForApart %>" />
            <%=GetGlobalResourceObject("Aparts", "scoreOpinion")%>
        </div>
        <div class="apl-inf">
            <div class="apl-inf-t">
                <%=GetGlobalResourceObject("Aparts", "maxPeople")%>:
            </div>
            <div class="apl-inf-v">
                <asp:Panel runat="server" ID="pnlPeopleOuter" CssClass="apl-people-outer">
                    <asp:Panel runat="server" ID="pnlPeople" CssClass="apl-people">
                        <asp:HyperLink runat="server" ID="lnkPeople"></asp:HyperLink>
                    </asp:Panel>
                </asp:Panel>
            </div>
            <asp:Panel runat="server" ID="pnlMoreOne" Visible="false">
                <div class="clear">
                </div>
                <div class="apl-inf-t">
                    <%=GetGlobalResourceObject("Aparts", "apartmentsCount")%>:
                </div>
                <div class="apl-inf-v">
                    <asp:Panel runat="server" ID="pnlRooms" CssClass="apl-rooms">
                        <asp:HyperLink runat="server" ID="lnkRooms"></asp:HyperLink>
                    </asp:Panel>
                </div>
            </asp:Panel>
            <asp:Panel runat="server" ID="pnlAllNights" Visible="false">
                <div class="clear">
                </div>
                <div class="apl-inf-t">
                    Pobyt na:
                </div>
                <div class="apl-inf-v">
                    <span class="blue b">
                        <asp:Literal runat="server" ID="lblNight"></asp:Literal></span>
                </div>
            </asp:Panel>
            <div class="clear">
            </div>
            <asp:Panel runat="server" ID="pnlPricePerNight" Visible="true">
                <div class="apl-inf-t">
                    <asp:Literal runat="server" ID="lblPriceNoSet" Visible="false" Text="<%$ Resources:Aparts, priceFrom %>"></asp:Literal>
                    <asp:Literal runat="server" ID="lblPriceSet" Visible="false" Text="Za osobę"></asp:Literal>:
                </div>
                <div class="apl-inf-v">
                    <span class="blue"><b>
                        <blackhouse:CurrencyLiteral runat="server" ID="lblPricePersonNight" Precision="2" DisableChangeCurrency="true" />
                    </b></span>/ <b>
                        <%=GetGlobalResourceObject("Aparts", "perNight")%></b>
                </div>
                <div class="clear">
                </div>
            </asp:Panel>
            <asp:Panel runat="server" ID="pnlOldPrice" Visible="false" CssClass="apl-oldprice">
                <div class="apl-inf-t">
                    Poprzednia cena:
                </div>
                <div class="apl-inf-v">
                    <span class="blue"><b>
                        <blackhouse:CurrencyLiteral runat="server" ID="lblPrevPriceAll" Precision="2" DisableChangeCurrency="true" /></b></span>
                </div>
            </asp:Panel>
            <asp:Panel runat="server" ID="pnlPriceAll" Visible="false">
                <div class="apl-inf-t">
                    <asp:Literal runat="server" ID="lblNewPriceAll" Visible="false" Text="Nowa cena"></asp:Literal><asp:Literal runat="server" ID="lblPriceAllTotal" Visible="true" Text="Razem"></asp:Literal>:
                </div>
                <div class="apl-inf-v">
                    <span class="blue"><b>
                        <blackhouse:CurrencyLiteral runat="server" ID="lblPriceAll" Precision="2" DisableChangeCurrency="true" /></b></span>
                </div>
            </asp:Panel>
            <div class="clear">
            </div>
        </div>
    </div>
    <div class="apl-name">
        <h2>
            <asp:Literal runat="server" ID="ltlApartmentName" /></h2>
        <div class="apl-stars">
            <asp:Panel CssClass="apl-stars-sel" ID="pnlStars" runat="server">
            </asp:Panel>
        </div>
    </div>
    <p class="apl-loca">
        <asp:Literal runat="server" ID="lblCity" />,
        <asp:Literal runat="server" ID="lblDistrict" />,
        <asp:Literal runat="server" ID="lblLocation" />
        <asp:HyperLink runat="server" ID="lnkToPopupMap" CssClass="apl-link apl-link-1" Text="<%$Resources:Aparts,showMap %>"></asp:HyperLink>
        <asp:HyperLink runat="server" ID="lnkToPopupScheme" CssClass="apl-link apl-link-2"
            Text="<%$Resources:Aparts,showSheme %>"></asp:HyperLink>
    </p>
    <p class="apl-desc">
        <asp:Literal runat="server" ID="lblDescription"></asp:Literal>
        <asp:HyperLink runat="server" ID="lnkFromDescription" CssClass="blue-link b" Text="<%$ Resources:Aparts, more %>"></asp:HyperLink>
    </p>
    <div class="apl-a-inf">
        <div class="apl-a-inf-1">
            <span class="blue">
                <%=GetGlobalResourceObject("Aparts", "surface").ToFirstUpperString()%>:</span>
            <asp:Literal runat="server" ID="ltlSurface"></asp:Literal>m<sup>2</sup>
        </div>
        <asp:Repeater runat="server" ID="rptFields" OnItemDataBound="rptFields_ItemDataBound">
            <HeaderTemplate>
                <div class="apl-a-inf-2">
            </HeaderTemplate>
            <ItemTemplate>
                <asp:Panel runat="server" ID="pnlField" CssClass="apl-a-inf-2i">
                    <span class="blue">
                        <asp:Literal ID="ltlTitle" runat="server" />:</span>
                    <asp:Literal ID="ltlValue" runat="server" />
                </asp:Panel>
            </ItemTemplate>
            <FooterTemplate>
                </div>
            </FooterTemplate>
        </asp:Repeater>
    </div>
    <blackhouse:ShowReservationPopupLink runat="server" ID="lnkReservationPopup" CssClass="white-button apl-nav"
        Visible="false" Text="<%$Resources:Aparts,calculate %>"></blackhouse:ShowReservationPopupLink>
    <asp:HyperLink runat="server" ID="lnkBook" CssClass="blue-button apl-nav" Visible="false"
        Text="<%$Resources:Aparts,book %>"></asp:HyperLink>
    <div class="clear">
    </div>
</div>
